# 设置
networksetup -setdhcp Wi-Fi

# dns
networksetup -setdnsservers Wi-Fi 192.168.17.1